package com.gxuwz.Market.business.service;


import java.util.List;

import com.gxuwz.Market.business.entity.ServiceData;
import com.gxuwz.Market.business.entity.ServiceField;
import com.gxuwz.Market.business.entity.ServiceForm;
import com.gxuwz.core.pagination.Result;

/**
 * <p>Title: 类名：班级-业务逻辑--接口</p>
 * <p>Description:mailsender-业务逻辑/n</p>
 * @author:	梧州学院 软件开发中心 庞光垚
 * @date:2015.07.31
 */
public interface IServiceDataService {
	
	public void createDB(String taskId, ServiceForm serviceForm);
	
	public void addWriter(String taskId, List<String> list);
	
	public void add(String dataFormName, ServiceData serviceData);
	
	public void update(String dataFormName, ServiceData serviceData);
	
	public void delete(String dataFormName, int id);
	
	public List<ServiceData> findAll(String dataFormName, int fieldNum);
	
	public List<ServiceData> find(String dataFormName, int fieldNum, ServiceData serviceData);
	
	public boolean isWriter(String dataFormName, String writerId);
	
	public ServiceData findByWriterId(String dataFormName, String writerId, int fieldNum);
	
	public String finish(String dataName);
	
	/**
	 * 批量添加数据
	 * @param taskId
	 * @param list
	 */
	public void addDatas(String taskId, List<ServiceData> list, int fieldNum);
	
	/**
	 * 修改表格格式
	 * @param fieldOld
	 * @param fieldNew
	 * @param dataName
	 */
	public void editTaskForm(List<ServiceField> fieldOld, List<ServiceField> fieldNew, String dataName);
    
	/**
	 * 复制表格
	 * @param newName
	 * @param oldName
	 */
	public void copy(String newName, String oldName);
	
	/**
	 * 获得用户邮箱
	 * @param ids
	 * @return
	 */
	public String sendMail(String ids);
}
